package com.java.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.java.springcloud.entities.CommonResult;

/**
 * @author jingjintao
 * @date 2021/8/18 - 22:44
 **/
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception){

        return new CommonResult(2020, "自定义的限流处理信息，CustomerBlockHandler....handlerException");
    }

    public static CommonResult handlerException2(BlockException exception){

        return new CommonResult(2020, "自定义的限流处理信息，CustomerBlockHandler....handlerException2");
    }
}
